<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
  <head>
    <html:base />
    
    <title>shb_input.jsp</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<link rel="stylesheet" href="/inc/register.css" type="text/css">
	<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
	<meta name="ProgId" content="FrontPage.Editor.Document">
	<title>天天人才―&gt;新用户注册</title>
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
<body topmargin="0" leftmargin="0">
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<tr>
    
  <td height="33">&nbsp; </td>
  </tr>
      

<div align="center">
  <table width="780" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td><img src="/images/a3.jpg" width="780" height="148"></td>
    </tr>
  </table>
  <table border="0" cellpadding="0" cellspacing="0" width="780">
    <center>
      <tr> 
        <td height="2" valign="top" colspan="3" bgcolor="#00006A"> </td>
      </tr>
    </center>
    <tr>
      <td width="157" height="16" bgcolor="#93BEF2" valign="bottom"> 
        <div align="center"><a href="default.html">首页</a></div>
      </td>
      <center>
        <td width="492" height="16" bgcolor="#93BEF2" valign="bottom"> &nbsp; 
          <marquee onmouseout=this.start() onmouseover=this.stop() border="0"  align="middle" scrolldelay="150" behavior="scroll"  width="100%">网站测试中</marquee></td>
      </center>
      <td width="131" height="16" bgcolor="#93BEF2" valign="bottom"> 
        <p align="center"> 
          <script language="javascript" >
          var enabled = 0; today = new Date();
          var day; var date;
          if(today.getDay()==0) day = "星期日"
          if(today.getDay()==1) day = "星期一"
          if(today.getDay()==2) day = "星期二"
          if(today.getDay()==3) day = "星期三"
          if(today.getDay()==4) day = "星期四"
          if(today.getDay()==5) day = "星期五"
          if(today.getDay()==6) day = "星期六"
          date = (today.getYear())+"年" + (today.getMonth() + 1 ) + "月" + today.getDate() + "日 " + day +"";
          document.write(date);
          </script>
      </td>
    </tr>
    <center>
      <tr> 
        <td height="2" valign="top" colspan="3" bgcolor="#00006A"> </td>
      </tr>
    </center>
  </table>
  
</div>

<div align="center">
  <center>
  <table border="0" cellpadding="0" cellspacing="0" width="780" height="45">
    <tr>
      <td width="766" height="18" valign="top" colspan="5" bgcolor="#5388C1"> 
        　 </td>
    </tr>
	<tr>
      <td width="144" height="162" valign="top" bgcolor="#5388C1">
        <p align="center">　</p>
        <p>　
      </td>
      <td width="29" height="309" valign="top"><img border="0" src="/images/selfk.GIF"></td>
      <td width="462" height="309">
       <s:form name='addnew'  action='tyhb!save.action' method='post' namespace="/register">
        <div align="center">
        <table border="1" cellpadding="0" cellspacing="0" width="352" height="1" bordercolor="#000000" bordercolorlight="#000000" bordercolordark="#FFFFFF">
          <tr>
            <td width="350" height="13" background="/images/t-bg1.gif">
              <p align="center">=== 新用户注册 ===</td>            
          </tr>
          <center>
          <tr>
            <td width="350" height="263" bgcolor="#fffff4">
              
              <p align="center">&nbsp;&nbsp;&nbsp; 用户名:<input type="text" name="yhb.username" size="15" maxLength=15> </p>           
              <p align="center">&nbsp; 登录密码:<input type="password" name="yhb.passwd" size="15" maxLength=15></p>            
              <p align="center">&nbsp; 重复密码:<input type="password" name="pwd2" size="15" maxLength=15></p>          
              <p align="center">联系E-mail:<input type="text" name="yhb.email" size="15" maxLength=30></p>
              <p align="center"><input type="radio" value="1" ${yhb.yhlx ne '2' ? 'checked':'' } name="yhb.yhlx">个人用户                                                       
                <input type="radio" value="2" ${yhb.yhlx  eq '2' ? 'checked':'' } name="yhb.yhlx">单位用户</p>
              <p align="center">
              <input type="submit" value="注 册" name="B1" style="position: relative; height: 19"></td>
          </tr>
          </center>
        </table>
        </div>
     </s:form>
      </td>
      
  <center>
      
	  <td width="1" height="309" valign="top" bgcolor="#00006A"></td>
      
	  <td width="119" height="309" valign="top" bgcolor="#F3F3F3"></td>
    </tr>
    <tr>
      <td width="743" height="1" valign="top" colspan="5" bgcolor="#5388C1"> 
        <p align="center"> </td>
    </tr>
    <tr>
      <td width="743" height="3" valign="top" colspan="5">
      <p align="center">
      </td>
    </tr>
    <tr>
      <td width="743" height="7" valign="top" colspan="5">
      <p align="center"><script language="javascript" >
      copyright ='<p align="center"><font face="Times New Roman">Copyright &copy; </font><br> 华南大学生实训基地  2012</p>';
      document.write(copyright);
      </script>
      </td>
    </tr>
    <tr>
      <td width="743" height="3" valign="top" colspan="5">
      </td>
    </tr>
  </table>
  </center>
</div>

</body>
<SCRIPT language=JavaScript>

function checkform()
{
 if (checkstring("用户名", document.addnew.uname.value, false)) {
    document.addnew.uname.focus();
    return false;   
  }
  var pwd = document.addnew.pwd.value;
  if (addnew.pwd.value=="") {
		alert("请输入登录密码！");
		addnew.pwd.focus();		
		    return (false);
  }
  if (pwd.length < 3) {
    alert("密码不能少于三位！");
    return false;   
  }
  var pwd2 = document.addnew.pwd2.value;
  if (pwd != pwd2) {
    alert("两次密码输入不一致！");
    document.addnew.pwd.value="";
    document.addnew.pwd2.value="";
	return false;
  }
  if (checkemail("电子邮件", document.addnew.email.value, false)) {
    document.addnew.email.focus();
    return false;   
  }
  return true;
}

</SCRIPT>
</html:html>
